package com.xuhai.blog.admin.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xuhai.blog.admin.entity.ArticleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 文章表 Mapper 接口
 * </p>
 *
 * @author 机蜂
 * @since 2022-02-08
 */
@Mapper
public interface ArticleMapper extends BaseMapper<ArticleEntity> {
    IPage<ArticleEntity> getArticlePageByCategoryId(@Param("page") IPage<ArticleEntity> page,@Param("article") ArticleEntity article,@Param("categoryId") Integer categoryId);
    int updateRead(Integer articleId);
}
